/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package icexam.user;

/**
 *
 * @author Ethan
 */
public class UserBean {

    private int uid = 0;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }
    private String compName = null;
    private String ceoName = null;
    private String idcard = null;
    private String username = null;
    private String password = null;
    private boolean admin = false;

    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    private int spentTime = 0;
    private int bestScore = 0;

    public int getBestScore() {
        return bestScore;
    }

    public void setBestScore(int bestScore) {
        this.bestScore = bestScore;
    }

    public int getSpentTime() {
        return spentTime;
    }

    public void setSpentTime(int spentTime) {
        this.spentTime = spentTime;
    }
    public String getCeoName() {
        return ceoName;
    }

    public void setCeoName(String ceoName) {
        this.ceoName = ceoName;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String id) {
        this.idcard = id;
    }

    @Override
    public String toString() {
        return compName + " - " + ceoName;
    }

}
